package com.zero.manager_following.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 功能：User实体类的javaBean
 * 作者：zero
 * 日期：2024/9/13 13:25
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("user")
public class User {
    @TableId(type=IdType.AUTO)
    @Alias("身份id")
    private Integer id;

    @Alias("用户名")
    private String username;

    @Alias("密码")
    private String password;

    @Alias("名字")
    private String name;

    @Alias("电话")
    private String phone;

    @Alias("邮箱")
    private String email;

    @Alias("邮件地址")
    private String address;

    @Alias("头像")
    private String avatar;

    @Alias("身份")
    private String role;


    @TableField(exist = false)
    private String token;

}